#define WEBVIEW_IMPLEMENTATION

#ifdef _WIN32
#define WEBVIEW_WINAPI
#elif __APPLE__
#define WEBVIEW_COCOA
#else
#define WEBVIEW_GTK
#endif

#include "../include/webview.h"

#ifdef _WIN32
int WINAPI WinMain(HINSTANCE hInt, HINSTANCE hPrevInst, LPSTR lpCmdLine,
                   int nCmdShow) {
#else
int main() {
#endif
    printf("Hello, World!\n");
    webview_t w = webview_create(1, nullptr);
    webview_set_title(w, "WebView示例");
    webview_set_size(w, 800, 600, WEBVIEW_HINT_NONE);
    webview_navigate(w, "http://localhost:3000/");
    webview_run(w);
    webview_destroy(w);
    return 0;
} 